package cn.fuxi2022.feign.api;


import cn.fuxi2022.model.resp.PageUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(name = "group-auth",contextId = "groupStudent")
public interface GroupStudent {
    /**
     * 列表
     */
    @RequestMapping("/groupStudent/list")
    PageUtils list(@RequestParam Map<String, Object> params);

    /**
     * 删除
     */
    @DeleteMapping("/groupStudent/delete/{id}")
    void delete(@PathVariable("id") String id);

    /**
     * 修改
     */
    @PutMapping("/groupStudent/update")
    void update(@RequestBody cn.fuxi2022.model.empty.auth.GroupStudent groupStudent);

    /**
     * 根据公众号openid获取学生信息
     */
    @RequestMapping("/groupStudent/getStudentByOpenidGz/{openidGz}")
    cn.fuxi2022.model.empty.auth.GroupStudent getStudentByOpenidGz(@PathVariable("openidGz") String openidGz);
}
